package com.nuanshui.heatedloan.msgcenter.integration;

import com.nuanshui.heatedloan.middleware.msgcenter.bean.MsgBody;
import com.nuanshui.heatedloan.msgcenter.model.MsgOperationType;
import com.nuanshui.heatedloan.msgcenter.model.MsgType;

import java.util.Date;


/**
 * 发送消息的消息体
 * @ClassName: MsgBody 
 * @author guohao
 * @date 2016年2月17日 上午10:42:35 
 *
 */
public class AppPushMsgBody extends MsgBody {

	public AppPushMsgBody()
	{
		setMsgType(MsgType.PUSH_MSG);
		setMsgOperationType(MsgOperationType.ADD);
	}

	//数据持久化
	public static Integer FLAG_PERSISTENCE    =0x1;

	private String directUrl;//跳转url

	private String imageId;//图片id

	private Date pushTime;

	private MsgOperationType msgOperationType;//操作类型，添加还是删除

	private Integer badge;//消息个数， ios用的

	private int flag;

	private UserDeviceTokenVo deviceToken;

	private String resultMsg;// 三方返回的信息

	public String getDirectUrl() {
		return directUrl;
	}

	public void setDirectUrl(String directUrl) {
		this.directUrl = directUrl;
	}

	public String getImageId() {
		return imageId;
	}

	public void setImageId(String imageId) {
		this.imageId = imageId;
	}

	public Date getPushTime() {
		return pushTime;
	}

	public void setPushTime(Date pushTime) {
		this.pushTime = pushTime;
	}

	public MsgOperationType getMsgOperationType() {
		return msgOperationType;
	}

	public void setMsgOperationType(MsgOperationType msgOperationType) {
		this.msgOperationType = msgOperationType;
	}

	public Integer getBadge() {
		return badge;
	}

	public void setBadge(Integer badge) {
		this.badge = badge;
	}

	public int getFlag() {
		return flag;
	}

	public void setFlag(int flag) {
		this.flag = flag;
	}

	public UserDeviceTokenVo getDeviceToken() {
		return deviceToken;
	}

	public void setDeviceToken(UserDeviceTokenVo deviceToken) {
		this.deviceToken = deviceToken;
	}

	public String getResultMsg() {
		return resultMsg;
	}

	public void setResultMsg(String resultMsg) {
		this.resultMsg = resultMsg;
	}


}
